<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="description" content="[.$emmm_web.webdescriptions.]"/>
<meta name="keywords" content="[.$emmm_web.webkeywords.]"/>
<meta name="author" content="vidar.club"/>
<meta name="viewport" content="initial-scale=1, maximum-scale=3, minimum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-title" content="[.$emmm_web.website.]">
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta name="HandheldFriendly" content="true">
<meta name="MobileOptimized" content="320">
<meta name="screen-orientation" content="portrait">
<meta name="x5-orientation" content="portrait">
<meta name="full-screen" content="yes">
<meta name="x5-fullscreen" content="true">
<meta name="browsermode" content="application">
<meta name="x5-page-mode" content="app">
<meta name="msapplication-tap-highlight" content="no">
<title>[.$emmm_web.website.]</title>
[.include file="cn/cn_head.html".]
</head>
<body>
<div id="YIQI-UI">
	<div class="pages">
		[.include file="cn/cn_shoptop.html".]
        <div class="content" style=" padding:60px 0; background:#FFF;">
                [.*找回密码表单开始*.]
				<script type="text/javascript">
					var wait=120; 
					function anniu(){
						if (wait == 0) { 
							$('#btn').attr("disabled", false);
							$('#btn').val('获取验证码');
							$("#btn").removeClass("disabled").addClass("btn-success");
							wait = 120; 
						} else { 
							$('#btn').attr("disabled", true); 
							$('#btn').val('重新发送(' + wait + ')');
							$("#btn").removeClass("btn-success").addClass("disabled");
							wait--; 
							setTimeout(function() { 
								anniu();
							}, 1000) 
						};
					}
					function reg_code(){
						var user = $("input[name='COL_Useremail']").val();
						var reg = $("input[name='COL_Useretel']").val();
						if(reg == ''){
							alert('* 号不能为空!');
							return false;
						}
						$.ajax({  
								type:'get',
								url : '[.$webpath.]client/user/?[.$ip.lang.]-password.html-&user=telcode&zh='+reg+'&username='+user,
								dataType : 'jsonp',  
								jsonp:"jsoncallback",
								async:true,
								beforeSend:function(){},
								success:function(data){
									if(data == '-1'){
										alert("发送失败！~");
									}else{
										anniu();
									}
								},
								complete:function(){},
								error:function(){}
						});
					}
                </script>
                [.if empty($smarty.get.user).]
                <form id="form1" name="form1" method="post" action="?[.$ip.lang.]-userpassword.html-&user=email" class="registerform">
                <table width="100%" border="0" class="table table-border table-hover">
                      <tr>
                        <td width="32%"><div align="right">输入找回账号：</div></td>
                        <td><input type="text" name="COL_Useremail" class="input" datatype="*" value="E-mail 或 手机号码" onfocus="if (value =='E-mail 或 手机号码'){value =''}" onblur="if (value ==''){value='E-mail 或 手机号码'}" /> <font color="#FF0000">*</font></td>
                      </tr>
                      <tr>
                        <td><div align="right">验证码：</div></td>
                        <td><input type="text" name="code" class="input3" datatype="*" onfocus="document.getElementById('checkcode').src+='?'" /> <font color="#FF0000">*</font>&nbsp;<img title="点击刷新" id="checkcode" src="[.$webpath.]function/emmm_code.php" align="absbottom" onclick="this.src='[.$webpath.]function/emmm_code.php?'+Math.random();" width="80" height="25"></img></td>
                      </tr>
                      <tr>
                        <td colspan="2">
                        <input type="submit" name="Submit" value="下一步" class="btn btn-danger pt-10 pb-10 pl-20 pr-20 mt-10" style="width:100%;" /></td>
                      </tr>
                </table>
                </form>
                [.elseif $smarty.get.user == 'email'.]
                <form id="form1" name="form1" method="post" action="?[.$ip.lang.]-userpassword.html-&user=faq" class="registerform">
				[.if $usercontrol['telsms'] == 0.]
                <table width="100%" border="0" class="table table-border table-hover">
                      <tr>
                        <td width="30%"><div align="right">验证答案：[.$usercontrol['telsms'].]</div></td>
                        <td>[.$faq[2].]</td>
                      </tr>
                      <tr>
                        <td><div align="right">输入答案：</div></td>
                        <td><input type="text" name="COL_Useranswer" class="input" datatype="*" /> <font color="#FF0000">*</font>
                          <input type="hidden" name="COL_Useremail" value="[.$faq[1].]" />
						  <input type="hidden" name="COL_Usercode" value="[.$faq[3].]" />
                        </td>
                      </tr>
                      <tr>
                        <td colspan="2">
                        <input type="submit" name="Submit" value="下一步" class="btn btn-danger pt-10 pb-10 pl-20 pr-20 mt-10" style="width:100%;" /></td>
                      </tr>
                </table>
				[.elseif $usercontrol['telsms'] == 1.]
                <table width="100%" border="0" class="table table-border table-hover">
                      <tr>
                        <td width="30%"><div align="right">手机号码：</div></td>
                        <td>[.$faq[4].]</td>
                      </tr>
                      <tr>
                        <td><div align="right">验证码：</div></td>
                        <td><input type="text" name="COL_Userpasscode" class="input3" datatype="*" /> <font color="#FF0000">*</font>
						<input onclick="reg_code();" id="btn" type="button" class="btn btn-success radius-5 ml-10 pd-5" value="获取验证码" />
                          <input type="hidden" name="COL_Useremail" value="[.$faq[1].]" />
						  <input type="hidden" name="COL_Usercode" value="[.$faq[3].]" />
                          <input type="hidden" name="COL_Useretel" value="[.$faq[4].]" />
                        </td>
                      </tr>
                      <tr>
                        <td colspan="2">
                        <input type="submit" name="Submit" value="下一步" class="btn btn-danger pt-10 pb-10 pl-20 pr-20 mt-10" style="width:100%;" /></td>
                      </tr>
                </table>
				[./if.]
                </form>
                [.elseif $smarty.get.user == 'faq'.]
                <form id="form1" name="form1" method="post" action="?[.$ip.lang.]-userpassword.html-&user=ok" class="registerform">
                <table width="100%" border="0" class="table table-border table-hover">
                      <tr>
                        <td width="30%"><div align="right">输入新密码：</div></td>
                        <td><input type="password" name="COL_Userpass" class="input" datatype="*" /> <font color="#FF0000">*</font>
                          <input type="hidden" name="COL_Useremail" value="[.$faq[1].]" />
                          <input type="hidden" name="COL_Useranswer" value="[.$faq[2].]" />
                        </td>
                      </tr>
                      <tr>
                        <td colspan="2">
                        <input type="submit" name="Submit" value="下一步" class="btn btn-danger pt-10 pb-10 pl-20 pr-20 mt-10" style="width:100%;" /></td>
                      </tr>
                </table>
                </form>
                [./if.]
                
                <link rel="stylesheet" href="../../function/plugs/Validform/style.css" type="text/css" />
                <script type="text/javascript" src="../../function/plugs/Validform/Validform_v5.3.2.js"></script>
                <script type="text/javascript">
                $(function(){
                    $(".registerform").Validform();  //就这一行代码！;
                })
                </script>
                [.*找回密码表单结束*.]
        </div>
    </div>
	[.include file="cn/cn_shopfoot.html".]
</div>
</body>
</html>
